package com.lei.chinese_herbal_medicine.Controller;


import com.lei.chinese_herbal_medicine.Entity.Result;
import com.lei.chinese_herbal_medicine.Service.ModelHerbLinkService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

/**
 * (ModelHerbLink)表控制层
 *
 * @author makejava
 * @since 2024-01-18 10:05:27
 */
@RestController
public class ModelHerbLinkController {
    /**
     * 服务对象
     */
    @Resource
    private ModelHerbLinkService modelHerbLinkService;
    @Resource
    Result result;
    Map map=new HashMap();
    @GetMapping("/getModelHerbLinkNum")
    public Result getModelHerbLinkNum(){
        Map modelHerbLinkNum=modelHerbLinkService.getModelHerbLinkNum();
        result.setCode(200);
        map.put("modelHerbLinkNum",modelHerbLinkNum);
        map.put("message",200);
        result.setData(map);
        return result;
    }
}

